import java.net.*;
import java.io.*;
import java.applet.*;
import com.sun.j3d.utils.applet.MainFrame;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;


//erstellt einen TCPServer
public class TCPServer{
	public Socket mySocket;
	public ServerSocket serverSocket=null;
	int port=6543;
	
	public TCPServer(){
		System.out.println("Server:");
		connect();
	}
	
	public void connect(){
		try{
			serverSocket = new ServerSocket(port);
			mySocket = serverSocket.accept();
		}catch(Exception e){System.out.println(e);}
	}
	
	public Socket getSocket(){
		return mySocket;
	}
	

}

